package site.cege.config;

import com.alibaba.fastjson.JSONArray;
import com.itextpdf.text.BaseColor;

public class CellConfig {
    private int border; //是否显示边框
    private BaseColor borderColor; //边框颜色
    private int verticalAlignment; //垂直对齐方式 @see  Element.ALIGN_CENTER
    private int horizontalAlignment; //水平对齐方式 @see Element.ALIGN_MIDDLE
    private int columnFixedHeight; //列高
    private JSONArray columns; //列数据
    private int colspan; //合并的列

    public int getBorder() {
        return border;
    }

    public void setBorder(int border) {
        this.border = border;
    }

    public BaseColor getBorderColor() {
        return borderColor;
    }

    public void setBorderColor(BaseColor borderColor) {
        this.borderColor = borderColor;
    }

    public int getVerticalAlignment() {
        return verticalAlignment;
    }

    public void setVerticalAlignment(int verticalAlignment) {
        this.verticalAlignment = verticalAlignment;
    }

    public int getHorizontalAlignment() {
        return horizontalAlignment;
    }

    public void setHorizontalAlignment(int horizontalAlignment) {
        this.horizontalAlignment = horizontalAlignment;
    }

    public int getColumnFixedHeight() {
        return columnFixedHeight;
    }

    public void setColumnFixedHeight(int columnFixedHeight) {
        this.columnFixedHeight = columnFixedHeight;
    }

    public JSONArray getColumns() {
        return columns == null ? new JSONArray() : columns;
    }

    public void setColumns(JSONArray columns) {
        this.columns = columns;
    }

    public int getColspan() {
        return colspan;
    }

    public void setColspan(int colspan) {
        this.colspan = colspan;
    }
}
